/**
 *  meta属性
 *  index: element的index属性,
 *  icon: element的icon,
 *  title: i18n的路径,
 *  isShow: 是否展示路由,
 *  keepAlive: 是否使用<keep-alive>缓存路由,
 */


export default [
    {
        path: '/',
        redirect: '/dashboard'
    },
    {
        path: '/dashboard',
        component: () => import('@/views/dashboard/dashboard.vue'),
        meta: {
            index: 'dashboard',
            icon: 'el-icon-s-home',
            title: 'menu.dashboard',
            isShow: true,
            keepAlive: false,
        },
    },
    {
        path: '/feature',
        component: () => import('@/components/layouts/RouterView.vue'),
        meta: {
            index: 'feature',
            icon: 'el-icon-film',
            title: 'menu.feature',
            isShow: true,
            keepAlive: false,
        },
        children: [
            {
                path: 'compressedImage',
                component: () => import('@/views/feature/compressedImage.vue'),
                meta: {
                    index: 'compressedImage',
                    icon: '',
                    title: 'menu.compressedImage',
                    isShow: true,
                    keepAlive: true,
                },
            },
            {
                path: 'camera',
                component: () => import('@/views/feature/camera.vue'),
                meta: {
                    index: 'camera',
                    icon: '',
                    title: 'menu.camera',
                    isShow: true,
                    keepAlive: false,
                },
            },
        ]
    },
    {
        path: '/map',
        component: () => import('@/components/layouts/RouterView.vue'),
        meta: {
            index: 'map',
            icon: 'el-icon-map-location',
            title: 'menu.map',
            isShow: true,
            keepAlive: true,
        },
        children: [
            {
                path: 'amap',
                component: () => import('@/views/map/AMap.vue'),
                meta: {
                    index: 'amap',
                    icon: '',
                    title: 'menu.amap',
                    isShow: true,
                    keepAlive: true,
                },
            },
        ]
    },
]